<template>
	<view class="page">
		<view class="content">
			<view class="finish">支付完成</view>
			<view class="price">¥ {{this.price}}</view>
			<view class="goods-count">共{{this.count_num}}件商品</view>
			<view class="tel-wrap">
				<text>收货手机号：</text>
				<text style="color: #999;">{{this.receive_phone}}</text>
			</view>
			<view class="wechat">{{this.pay_type}}</view>
			<image src="/static/img/pay-success.png" class="pay-success"></image>
			<view class="select-order" @click="tocheckOrder">
				<text >查看订单</text>
			</view>
			<view class="select-order" @click="back">
				<text >返回</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		onLoad: function(options) {
			this.order_umber = options.order_umber
			this.receive_phone = options.receive_phone
	         this.pay_type=options.pay_type==1 ? '微信支付' : "支付宝支付";
			this.price = options.price
			this.count_num = options.count_num
			this.order_id = options.order_id
		
			
			//调用需要的方法 
		},
		data() {
			return {
				
			}
		},
		onBackPress(options) {
		    // 这里可以自定义返回逻辑，比如下面跳转其他页面
		   
			// return true 表示禁止默认返回
			
			return true;
		},
		methods: {
			moveHandle() {
					return;
			},
			//查看待发货订单 
			tocheckOrder() {
				uni.navigateTo({
					url: '/pages/order/NotPay?status=1'
				})
			},
			back(){
				uni.switchTab({
					url: '/pages/index/index'
				})
			}
		
		}
	}
</script>

<style>
	.page {
		width: 100%;
		height: 100%;
	}
	.content {
		width: 750rpx;
		margin-top: 120rpx;
	}
	.finish {
		width: 100%;
		height: 32rpx;
		font-size: 34rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(51,51,51,1);
		text-align:center;
	}
	.price {
		width: 100%;
		display: block;
		text-align:center;
		margin-top: 120rpx;
		height: 39rpx;
		font-size: 52rpx;
		font-family: PingFang SC;
		font-weight: 800;
		color: rgba(254,177,71,1);
	}
	.goods-count {
		width: 100%;
		display: block;
		height: 31rpx;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(153,153,153,1);
		margin-top: 50rpx;
		text-align:center;
	}
	.tel-wrap {
		width: 100%;
		height: 30rpx;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(51,51,51,1);
		text-align:center;
		margin-top: 75rpx;
	}
	.wechat {
		width: 100%;
		display: block;
		height: 31rpx;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(51,51,51,1);
		text-align:center;
		margin-top: 110rpx;
	}
	.pay-success {
		width: 170rpx;
		height: 170rpx;
		margin-left: 290rpx;
		margin-top: 60rpx;
	}
	.select-order {
		width: 330rpx;
		height: 70rpx;
		background: rgba(254,177,71,1);
		border-radius: 6rpx;
		margin-left: 210rpx;
		margin-top: 200rpx;
	}
	.select-order:last-child{
		margin-top: 50rpx;
	}
	.select-order text {
		width: 330rpx;
		height: 70rpx;display: block;
		text-align: center;
		font-size: 30rpx;
		font-family: PingFang SC;
		font-weight: 500;
		color: rgba(255,255,255,1);
		line-height: 70rpx;
	}
</style>
